package fr.esiee.anais.cl.view;

import java.awt.BorderLayout;
import java.awt.Container;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JTabbedPane;

public class PrincipalView extends JFrame{

	private JTabbedPane tab = new JTabbedPane();
	
	public PrincipalView(){
		
		Container c = getContentPane();
		SettingPanel setting = new SettingPanel();
		tab.add("Settings",setting);
		
		TelemetryADCSPanel  telemetryADCSPanel = new TelemetryADCSPanel();
		tab.add("Telemetry - OBC", telemetryADCSPanel);
		
		TelemetryCOMPanel telemetryCOMPanel = new TelemetryCOMPanel();
		tab.add("Telemetry - COM", telemetryCOMPanel);
		
		TelemetryEPSPanel telemetryEPSPanel = new TelemetryEPSPanel();
		tab.add("Telemetry - EPS", telemetryEPSPanel);
		
		TelemetryOBCPanel  telemetryOBCPanel = new TelemetryOBCPanel();
		tab.add("Telemetry - OBC", telemetryOBCPanel);
		
		TelemetryTCSPanel  telemetryTCSPanel = new TelemetryTCSPanel();
		tab.add("Telemetry - TCS", telemetryTCSPanel);
		
		c.add(tab,BorderLayout.CENTER);
		this.pack();
		
		//setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
	
	
}
